const Layout = () => import('@/layout/index.vue')

export default {
  name: 'Approve',
  path: '/approve',
  component: Layout,
  redirect: '/approve/auto_approve',
  meta: {
    title: '审批',
    // customIcon: 'logo',
    role: ['admin'],
    requireAuth: true,
    order: 3,
    icon:"mdi:snowflake-approve"
  },
  children: [
    {
      name: 'Auto_approve',
      path: 'auto_approve',
      component: () => import('@/views/approve/auto_approve/index.vue'),
      meta: {
        title: '自动审批',
        icon: 'fluent-mdl2:robot',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
    {
      name: 'Approve_tb',
      path: 'approve_tb',
      component: () => import('./editor/md-editor.vue'),
      meta: {
        title: '审批报表',
        icon: 'fluent:table-28-regular',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
    {
      name: 'RichTextEditor',
      path: 'rich-text',
      component: () => import('./editor/rich-text.vue'),
      meta: {
        title: '富文本编辑器',
        icon: 'ic:sharp-text-rotation-none',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
    {
      name: 'Upload',
      path: 'upload',
      component: () => import('./upload/index.vue'),
      meta: {
        title: '图片上传',
        icon: 'mdi:upload',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
  ],
}
